// 基于template/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/{{spinalCase ctrl.codeName}}-tree-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

class AllSystemControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_deploy_system',
			'id',
			'system_id',
			'display_name',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'menus',
			'components',
			'apis',
			'permissions',
			'custom_resources',
			'md5_checksum',
			'binding_id',
			'description',
			'deleted',
			'enabled',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.display_name;
	}
	set text(value: any) {
		this.$DO.display_name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set display_name(value: any) {
		this.$DO.display_name = value;
	}
	get display_name() {
		return this.$DO.display_name;
	}
}
class CurSystemRoleControlVO extends ControlVOBase {
	constructor(data: any) {
		super(data);
		//  树自持属性
		this.$ownKeys = [
			'sys_role',
			'id',
			'name',
			'enabled',
			'creator',
			'create_time',
			'updater',
			'update_time',
			'dc',
			'authority',
			'deploy_system_id',
			'system_id',
			'system_display_name',
			'workflow_group',
			'group_scope',
			'description',
		];
	}
	get id() {
		return this.$DO.id;
	}
	set id(value: any) {
		this.$DO.id = value;
	}
	get text() {
		return this.$DO.name;
	}
	set text(value: any) {
		this.$DO.name = value;
	}
	set srfkey(value: any) {
		this.$DO.id = value;
	}
	get srfkey() {
		return this.$DO.id;
	}
	set name(value: any) {
		this.$DO.name = value;
	}
	get name() {
		return this.$DO.name;
	}
}

export const Treeexpbar_treeControlVO = [
	{ name: 'AllSystemControlVO', controlVO: AllSystemControlVO },
	{ name: 'CurSystemRoleControlVO', controlVO: CurSystemRoleControlVO },
];
